package com.itserver.pojo.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;


@Data
public class User {

    private Integer id;
    private String username;
    // 密码字段在列表不展示
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private  String password;
    private String nickname;
    private String email;
    private String userPic;
    private String roles;
    private String rolesName;
    private Integer sex;
    private String address;
    private String phone;
    private String isDelete;
    private Integer source;
    private String remark;
    private Integer deptId;
    private String deptName;

    private Integer postId;
    private String postName;

    private Integer status;
    private Integer userType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
